<!DOCTYPE html>
<html lang="ch">
    <head>
        <meta charset="UTF-8"
              name="viewport"
              content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
        <title>New VQ</title>
        <link rel="shortcut icon" href="../../img/icon.jpg">

        <script src="https://unpkg.com/vue@3"></script>
        <!-- import CSS -->
        <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
        <!--图标-->
        <script src="//unpkg.com/@element-plus/icons-vue"></script>
        <!-- import JavaScript -->
        <script src="https://unpkg.com/element-plus"></script>

        <script src="../../res_js/axios-0.18.0.js"></script>

        <link rel="stylesheet" href="../../index.css">
        <link rel="stylesheet" href="../index.css">
        <link rel="stylesheet" href="index.css">
        <script src="../../index.js"></script>
        <script src="../index.js"></script>
    </head>
    <body>
        <div id="app">
            <!--主体-->
<!--            <el-container>-->
<!--                &lt;!&ndash;标题栏&ndash;&gt;-->
<!--                <el-header>-->
<!--                    <el-menu-->
<!--                            :default-active="activeIndex"-->
<!--                            class="el-menu-demo"-->
<!--                            mode="horizontal"-->
<!--                            :ellipsis="false"-->
<!--                            @select="handleSelect">-->
<!--                        <el-menu-item><el-avatar shape="square" :size="20" fit="contain" src="/img/icon1.jpg"></el-avatar></el-menu-item>-->
<!--                        <el-menu-item style="width: 13%" index="1" onclick="window.location.href='/PE/home/index.html'">主页</el-menu-item>-->
<!--                        <el-menu-item style="width: 13%" index="2" onclick="window.location.href='/PE/friend/index.html'">好友</el-menu-item>-->
<!--                        <el-menu-item style="width: 13%" index="3" onclick="window.location.href='/PE/sala/index.html'">大厅</el-menu-item>-->
<!--                        <div class="flex-grow"></div>-->
<!--                        <el-menu-item style="padding-left: 2%; padding-right: 2%" index="4" onclick="window.location.href='/PE/search/index.html'"><el-icon><Search></Search></el-icon>搜素&ensp;</el-menu-item>-->
<!--                        <el-menu-item @click="userDrawer=true"><template #title><el-avatar src="/img/HeadSculpture.jpg" fit="cover"></el-avatar></template></el-menu-item>-->
<!--                    </el-menu>-->
<!--                </el-header>-->
<!--                &lt;!&ndash;内容&ndash;&gt;-->
<!--                <el-main class="main" style="height: 100vh; overflow: auto">-->
<!--&lt;!&ndash;                    <el-image src="./image/home.jpg">&ndash;&gt;-->
<!--&lt;!&ndash;                        <div slot="placeholder" class="image-slot">&ndash;&gt;-->
<!--&lt;!&ndash;                            加载中<span class="dot">...</span>&ndash;&gt;-->
<!--&lt;!&ndash;                        </div>&ndash;&gt;-->
<!--&lt;!&ndash;                    </el-image>&ndash;&gt;-->

<!--                    &lt;!&ndash; <el-image src="./image/home1.png">-->
<!--                        <div slot="placeholder" class="image-slot">-->
<!--                            加载中<span class="dot">...</span>-->
<!--                        </div>-->
<!--                    </el-image>-->
<!--                    <el-image style="margin-top: -1%" src="./image/home2.png">-->
<!--                        <div slot="placeholder" class="image-slot">-->
<!--                            加载中<span class="dot">...</span>-->
<!--                        </div>-->
<!--                    </el-image>-->
<!--                    <el-image style="margin-top: -1%" src="./image/home3.png">-->
<!--                        <div slot="placeholder" class="image-slot">-->
<!--                            加载中<span class="dot">...</span>-->
<!--                        </div>-->
<!--                    </el-image> &ndash;&gt;-->
<!--           -->
<!--                    <img src="./image/home1.png" alt="主页背景图" style="width: 100%;">-->
<!--                    <img src="./image/home2.png" alt="主页背景图" style="width: 100%;">-->
<!--                    <img src="./image/home3.png" alt="主页背景图" style="width: 100%;">-->
<!--                    <div style="height: 100px; width: 100%;">陕ICP备2023014750号-1</div>-->
<!--                </el-main>-->
<!--            </el-container>-->

            <div class="header-back"></div>
            <div class="header">
                <div class="header-tag" onclick="window.location.href='/PE/home/index.html'"><img src="/img/icon2.png" alt="图标" style="margin-top: 15px; height: 20px"></div>
                <div class="header-tag" onclick="window.location.href='/PE/home/index.html'">主页</div>
                <div class="header-tag" onclick="window.location.href='/PE/friend/index.html'">好友</div>
                <div class="header-tag" onclick="window.location.href='/PE/sala/index.html'">大厅</div>
                <div class="header-tag-right" @click="userDrawer=true"><img src="/img/HeadSculpture.jpg" style="float: left; margin-top: 5px; height: 40px; border-radius: 20px" alt=""></div>
                <div class="header-tag-right" onclick="window.location.href='/PE/search/index.html'">搜索</div>
            </div>
            <div class="main">
                <img src="./image/home1.png" alt="主页背景图1" style="width: 100%;">
                <img src="./image/home2.png" alt="主页背景图2" style="width: 100%;">
                <img src="./image/home3.png" alt="主页背景图3" style="width: 100%;">
            </div>
            <div class="base">
                <div style="width: 100%; color: black">问题反馈 | 加入我们 | 隐私政策</div>
                <table style="width: 100%; margin-top: 5px; color: #8c939d; font-weight: 1; font-size: 14px">
                    <tr>
                        <td style="width: 50%;">红珊瑚</td>
                        <td style="width: 50%;">{{TITLE}} {{VERSION}}</td>
                    </tr>
                </table>
                <div style="width: 100%; margin-top: 5px;"><a href="https://beian.miit.gov.cn/" target="_black" style="color: #8c939d; font-weight: 1; font-size: 14px; text-decoration:none;">陕ICP备2023014750号-1</a></div>
            </div>


            <!--登录注册-->
            <el-drawer
                    title="登录注册"
                    size="65%"
                    v-model="logInDrawer"
                    direction="btt"
                    :before-close="handleClose">
                <el-tabs style="margin: 5%" v-model="activeName" @tab-click="handleClick">
                    <!--登录-->
                    <el-tab-pane label="登录" name="1">
                        <el-form ref="form" :model="logInForm" label-width="80px">
                            <el-form-item label="账号">
                                <el-input v-model="logInForm.account"></el-input>
                            </el-form-item>
                            <el-form-item label="密码">
                                <el-input type="password" v-model="logInForm.password"></el-input>
                            </el-form-item>
                        </el-form>
                        <div style="margin-top: 8%; margin-bottom: 14%" slot="footer" class="dialog-footer">
                            <el-button style="float: left" @click="logInDrawer  = false">取 消</el-button>
                            <el-button style="float: right" type="primary" @click="logIn">登 录</el-button>
                        </div>
                    </el-tab-pane>
                    <!--注册-->
                    <el-tab-pane label="注册" name="2">
                        <el-form ref="form" :model="registerForm" label-width="80px">
                            <el-form-item label="电子邮箱">
                                <el-input v-model="registerForm.email"></el-input>
                            </el-form-item>
                            <el-form-item label="验证码">
                                <el-input style="width: 55%" v-model="registerForm.captcha"></el-input>
                                <el-button style="width: 35%; margin-left: 7%" type="primary" :disabled="sendCaptchaBtnDis"  @click="sendCaptcha('register', registerForm.email)" round>{{sendCaptchaBtnValue}}</el-button>
                            </el-form-item>
                            <el-form-item label="用户名">
                                <el-input v-model="registerForm.username"></el-input>
                            </el-form-item>
                            <el-form-item label="密码">
                                <el-input type="password" placeholder="长度需要在6-20位之内，且须含有字母和数字" v-model="registerForm.password1"></el-input>
                            </el-form-item>
                            <el-form-item label="确认密码">
                                <el-input type="password" placeholder="长度需要在6-20位之内，且须含有字母和数字" v-model="registerForm.password2"></el-input>
                            </el-form-item>
                        </el-form>
                        <div style="margin-top: 8%; margin-bottom: 14%" slot="footer" class="dialog-footer">
                            <el-button style="float: left" @click="logInDrawer  = false">取 消</el-button>
                            <el-button style="float: right" type="primary" @click="register">注 册</el-button>
                        </div>
                    </el-tab-pane>
                    <!--忘记密码-->
                    <el-tab-pane label="忘记密码" name="3">
                        <el-form ref="form" :model="forgotPasswordForm" label-width="80px">
                            <el-form-item label="电子邮箱">
                                <el-input v-model="forgotPasswordForm.email"></el-input>
                            </el-form-item>
                            <el-form-item label="验证码">
                                <el-input style="width: 55%" v-model="forgotPasswordForm.captcha"></el-input>
                                <el-button style="width: 35%; margin-left: 7%" type="primary" :disabled="sendCaptchaBtnDis"  @click="sendCaptcha('forgotPassword', forgotPasswordForm.email)" round>{{sendCaptchaBtnValue}}</el-button>
                            </el-form-item>
                            <el-form-item label="密码">
                                <el-input type="password" placeholder="长度需要在6-20位之内，且须含有字母和数字" v-model="forgotPasswordForm.password1"></el-input>
                            </el-form-item>
                            <el-form-item label="确认密码">
                                <el-input type="password" placeholder="长度需要在6-20位之内，且须含有字母和数字" v-model="forgotPasswordForm.password2"></el-input>
                            </el-form-item>
                        </el-form>
                        <div style="margin-top: 8%; margin-bottom: 14%" slot="footer" class="dialog-footer">
                            <el-button style="float: left" @click="logInDrawer = false">取 消</el-button>
                            <el-button style="float: right" type="primary" @click="forgotPassword()">忘 记</el-button>
                        </div>
                    </el-tab-pane>
                </el-tabs>
            </el-drawer>
            <!--用户-->
            <el-drawer
                    title="用户"
                    v-model="userDrawer"
                    :direction="rtl"
                    :size="300">
                <!--用户信息-->
                <el-card class="box-card">
                    <el-avatar :size="60" style="margin: 0 0 8% 0; float: left" src="/img/HeadSculpture.jpg" fit="cover"></el-avatar>
                    <dic style="float: left; text-align: left; margin-top: -1vh; margin-left: 1vw">
                        <p>{{this.myUser.username}}</p>
                        <p style="font-size: 80%">ID: {{this.myUser.account}}</p>
                    </dic>
                </el-card>
                <!--功能区-->
                <table align="center" style="width: 100%; margin: 4% 0 4% 0">
                    <tr>
                        <td colspan="2"><el-button style="width: 100%" type="warning" onclick="window.location.href='/PE/userCenter/index.html'" round>&emsp;用&emsp;户&emsp;中&emsp;心&emsp;</el-button></td>
                    </tr>
                    <tr>
                        <td><el-button style="width: 100%" type="primary" @click="modifyUsernameDrawer=true" round>修改名称</el-button></td>
                        <td><el-button style="width: 100%" type="primary" @click="modifyPasswordDrawer=true" round>修改密码</el-button></td>
                    </tr>
                    <tr>
                        <td><el-button style="width: 100%" type="info" tag="a" href="https://wwp.lanzoup.com/iEC150pka3la" target="_blank" round>下载软件</el-button></td>
                        <td><el-button style="width: 100%" type="danger" @click="exitAccount" round>退出登录</el-button></td>
                    </tr>
                </table>
                <!--消息中心-->
                <div style="width:100%; height: 80%; overflow: auto">
                    <el-card style="margin: 2%" shadow="hover">
                        欢迎使用VQ0.8.1测试版
                        <!--分割线-->
                        <el-divider></el-divider>
                        本次更新：
                        <ol>
                            <li>更新动态和大厅UI及其交互。</li>
                            <li>修复发布动态按钮不显示的问题。</li>
                        </ol>
                    </el-card>
                </div>
            </el-drawer>
            <!--修改名称-->
            <el-drawer
                    title="修改名称"
                    size="50%"
                    v-model="modifyUsernameDrawer"
                    direction="btt"
                    :before-close="handleClose">
                <el-form ref="modifyUsernameForm" :model="modifyUsernameForm" label-width="80px">
                    <el-form-item label="账号">
                        <el-input v-model="modifyUsernameForm.account"></el-input>
                    </el-form-item>
                    <el-form-item label="密码">
                        <el-input type="password" v-model="modifyUsernameForm.password"></el-input>
                    </el-form-item>
                    <el-form-item label="新名称">
                        <el-input v-model="modifyUsernameForm.newUsername"></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-button type="primary" @click="ackModifyUsername">修改</el-button>
                        <el-button @click="modifyUsernameDrawer = false">取消</el-button>
                    </el-form-item>
                </el-form>
            </el-drawer>
            <!--修改密码-->
            <el-drawer
                    title="修改密码"
                    size="50%"
                    v-model="modifyPasswordDrawer"
                    direction="btt"
                    :before-close="handleClose">
                <el-form ref="modifyPasswordForm" :model="modifyPasswordForm" label-width="80px">
                    <el-form-item label="旧密码">
                        <el-input type="password" v-model="modifyPasswordForm.oldPassword"></el-input>
                    </el-form-item>
                    <el-form-item label="新密码">
                        <el-input type="password" placeholder="长度需要在6-20位之内，且须含有字母和数字" v-model="modifyPasswordForm.newPassword1"></el-input>
                    </el-form-item>
                    <el-form-item label="确认密码">
                        <el-input type="password" placeholder="长度需要在6-20位之内，且须含有字母和数字" v-model="modifyPasswordForm.newPassword2"></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-button type="primary" @click="ackModifyPassword">修改</el-button>
                        <el-button @click="modifyPasswordDrawer = false">取消</el-button>
                    </el-form-item>
                </el-form>
            </el-drawer>
        </div>

        <script src="index.js"></script>
    </body>
</html>